package com.atguigu.spzx.product.service;

import com.atguigu.spzx.model.dto.api.ApiProductSearchDTO;
import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.entity.product.ProductSku;
import com.atguigu.spzx.model.vo.api.product.ProductItemVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface ProductService extends IService<Product> {
    Map<String,Object> getIndexData();

    PageInfo<ProductSku> list(Integer pageNum, Integer pageSize, ApiProductSearchDTO productSearchDTO);

    ProductItemVO getItemBySkuId(Long skuId);
}
